﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace Source.ServerSide
{
    public abstract class EmailMessageSubjects
    {

        private static readonly Dictionary<EmailMessageTypes, string> subjectsByMailType = new Dictionary<EmailMessageTypes, string>()
                                                                               {
                                                                                   { EmailMessageTypes.Reminder, "Anticipated order reminder" },
                                                                                   { EmailMessageTypes.ApprovalRequired, "Your approval is required" },
                                                                                   { EmailMessageTypes.OrderApproverRejected, "An approver rejected the order" },
                                                                                   { EmailMessageTypes.OrderApproverRequestedChange, "An approver requested a change" },
                                                                                   { EmailMessageTypes.OrderRevoked, "An anticipated order was revoked" },
                                                                                   { EmailMessageTypes.OrderCancelled, "An anticipated order was cancelled" },
                                                                                   { EmailMessageTypes.OrderSubmitted, "An anticipated order was submitted" },
                                                                                   { EmailMessageTypes.OrderApproverApprovedOtherMail, "An approver approved the order"},
                                                                                   { EmailMessageTypes.OrderApproverApprovedMailOrderStatusApproved, "Anticipation order is approved"},
                                                                                   { EmailMessageTypes.OrderApproverApprovedMailFromRejectedToInvalidation, "Anticipation order no longer rejected"}
                                                                               };

        public static string GetSubject(EmailMessageTypes emailMessageType)
        {
            return subjectsByMailType[emailMessageType];
        }

    }
}
